<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <td>姓名</td>
        <td>事由</td>
        <td>状态</td>
        <td>类型</td>
    </tr>
    <br>
{% for i in a %}
    <tr>
        <td>{{ i.name }}</td>
        <td>{{ i.reason }}</td>
        <td>{{ i.state }}</td>
        <td>{{ i.stype.tname }}</td>
    </tr><br>
{% endfor %}
</table>
</body>
</html>